﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Guru.Web.Controls.Validators
{
    public class PropertyNullRefException:Exception
    {
        public PropertyNullRefException(string propertyName) :
            base(string.Format("The {0} property cannot be blank.", propertyName))
        {
            
        }
    }

    public class ControlNotFoundException : Exception
    {
        public ControlNotFoundException(string controlName) :
            base(string.Format("Control {0} cannot be found", controlName))
        {

        }
    }
    public class ResourceNotFound : Exception
    {
        public ResourceNotFound(string resourceName) :
            base(string.Format("Resource {0} cannot be found", resourceName))
        {

        }
    }
}
